#include "junix.h"

#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>

using namespace std;
using namespace boost::lambda;

int main(int argc, char **argv)
{
	boost::lambda::placeholder1_type X;
	boost::lambda::placeholder2_type Y;
	boost::lambda::placeholder3_type Z;

	vector<int> v(20);
	for_each(v.begin(), v.end(), X=bind(rand)%20);
	for_each(v.begin(),v.end(), cout<<X<<" ");
	cout<<endl;
}
